Equality Operator

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines if two pairs are equal. Two pairs are equal if the first and second elements both compare equal using IComparable<T>.Equals or object.Equals.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static bool operator ==(
	Pair<TFirst, TSecond> pair1,
	Pair<TFirst, TSecond> pair2
)
Visual Basic (Declaration)
Public Shared Operator = ( _
	pair1 As Pair(Of TFirst, TSecond), _
	pair2 As Pair(Of TFirst, TSecond) _
) As Boolean
Visual C++
public:
static bool operator == (
	Pair<TFirst, TSecond> pair1, 
	Pair<TFirst, TSecond> pair2
)

Parameters

pair1
Pair<(Of <TFirst, TSecond>)>
First pair to compare.
pair2
Pair<(Of <TFirst, TSecond>)>
Second pair to compare.

Return Value

True if the pairs are equal. False if the pairs are not equal.

See Also